package com.testDemo;

import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class $ {

	public static void main(String[] args) {

		try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Format f = new SimpleDateFormat("yyyy-MM-dd");
			Date today = sdf.parse("2017-05-06");
			System.out.println("今天是:" + f.format(sdf.parse("2017-05-06")));
			Calendar c = Calendar.getInstance();
			c.setTime(today);
			c.add(Calendar.DAY_OF_MONTH, 1);// 今天+1天

			Date tomorrow = c.getTime();
			System.out.println("明天是:" + f.format(tomorrow));
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}